home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / libs / type1beta5.lha / type1 / src / smakefile < prev    next >
Makefile  |  1995-01-08  |  2KB  |  98 lines

  1. ##
  2. # Makefile for type1.library
  3. ##
  4.  
  5.  
  6. ##
  7. # Configurable Section
  8. ##
  9.  
  10. #
  11. # Which CPU/FPU combination?
  12. # The first should work on all Amiga's.  The second is for 020/030/040 with 882 FPU.
  13. #
  14. #PROCESSOR = CPU=68000
  15. #MATHLIB = LIB:scm.lib
  16. #MATHOPT = MATH=STANDARD DEFINE=MATHSTANDARD
  17.  
  18. PROCESSOR = CPU=68030
  19. MATHLIB = LIB:scm881.lib
  20. MATHOPT = MATH=68882 DEFINE=MATH881
  21.  
  22. #
  23. # Debugging/Optimization flags
  24. # The first is to produce a library w/ debugging info, and w/o optimization.
  25. #
  26. #OPTIM = DEBUG=sf NOOPTIMIZE
  27. #USERLFLAGS = SMALLCODE SMALLDATA DEBUG
  28.  
  29. OPTIM = $(PROCESSOR) NODEBUG OPTIMIZE STRMERGE OPTIMTIME OPTSCHED OPTPEEP
  30. USERLFLAGS = SMALLCODE SMALLDATA NODEBUG
  31.  
  32.  
  33. ##
  34. # Filenames
  35. ##
  36. ASMSRCS = amisht1eexec.a  fillrun.a
  37. CSRCS = type1lib.c amishio.c curves.c regions.c t1objects.c type1interface.c \
  38.     amishmalloc.c fontfcn.c lines.c scanfont.c t1snap.c \
  39.     amisht1funcs.c globals.c paths.c spaces.c token.c util.c \
  40.     arith.c hints.c readfont.c type1.c
  41.  
  42. LIBOBJS = lib:libent.o lib:libinitr.o
  43. ASMOBJS = amisht1eexec.o fillrun.o
  44. COBJS = type1lib.o amishio.o curves.o regions.o t1objects.o type1interface.o \
  45.     amishmalloc.o fontfcn.o lines.o scanfont.o t1snap.o \
  46.     amisht1funcs.o globals.o paths.o spaces.o token.o util.o \
  47.     arith.o hints.o readfont.o type1.o
  48.  
  49. SRCS = $(ASMSRCS) $(CSRCS)
  50. OBJS = $(ASMOBJS) $(COBJS)
  51. MFILE = type1library.m
  52. HDR   = t1.gst
  53. FDFILE = type1_lib.fd
  54.  
  55.  
  56. ##
  57. # Miscellaneous
  58. ##
  59. LIBS  = LIB:pools.lib $(MATHLIB) LIB:sc.lib LIB:amiga.lib # LIB:debug.lib
  60. CFLAGS = LIBCODE NOSTACKCHECK NOCHKABORT NOICONS UTILLIB STRUCTUREEQUIVALENCE $(MATHOPT) $(DEBUG) $(OPTIM)
  61. LFLAGS = LIBPREFIX _ LIBFD $(FDFILE) LIBVERSION 1 LIBREVISION 0 NOICONS MAP $(MFILE) XFHLS SWIDTH 16 PLAIN WITH LIB:utillib.with $(USERLFLAGS) 
  62.  
  63.  
  64. ##
  65. # Rules
  66. ##
  67. .c.o: $(HDR)
  68.     sc $(CFLAGS) GST=$(HDR) $*
  69.  
  70. .a.o:
  71.     asm -iINCLUDE: $*
  72. #    hx68 from $*.a to $*.o addsym debug incdir include:
  73.  
  74. type1.library: $(HDR) $(OBJS)
  75.     slink $(LFLAGS) FROM $(LIBOBJS) $(OBJS) TO type1.library LIB $(LIBS)
  76.  
  77. $(HDR): global.h t1gst.c
  78.     sc $(CFLAGS) NOOBJNAME MAKEGST=$(HDR) t1gst.c
  79.  
  80. readfont.o: readfont.c
  81.     sc $(CFLAGS) $*
  82.  
  83. type1lib.o: type1lib.c
  84.     sc $(CFLAGS) $*
  85.  
  86. clean:
  87.     gst UNLOAD prog:src/type1/lib/t1.gst
  88.     -delete $(OBJS) type1.library $(HDR) $(MFILE)
  89.  
  90. install:
  91.     -copy type1.library /libs/type1.library
  92.     removelib type1.library
  93.  
  94.  
  95. ##
  96. # Dependencies
  97. ##
  98.